package com.alldios.deposit.api.invest;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alldios.deposit.anno.Desc;
import com.alldios.deposit.api.HfReq;


public class InitiativeTenderReq extends HfReq {


    @Desc("用户客户号")
    public String UsrCustId;


    @Desc("订单号")
    public String OrdId;


    @Desc("订单日期")
    public String OrdDate;


    @Desc("借款人信息")
    public String BorrowerDetails;


    @Desc("借款人客户号")
    public String BorrowerCustId;


    @Desc("项目 ID")
    public String ProId;


    @Desc("借款金额")
    public String BorrowerAmt;


    @Desc("借款手续费")
    public String BorrowerFeeAmt;


    @Desc("红包金额")
    public String VocherAmt;


    @Desc("预期收益金额")
    public String InterestAmt;


    @Desc("页面类型")
    public String PageType;

    public void setDetails() {
        JSONArray array = new JSONArray();
        JSONObject obj = new JSONObject();
        obj.put("BorrowerCustId", BorrowerCustId);
        obj.put("ProId", ProId);
        obj.put("BorrowerAmt", BorrowerAmt);
        obj.put("BorrowerFeeAmt", BorrowerFeeAmt);
        obj.put("VocherAmt", VocherAmt);
        obj.put("InterestAmt", InterestAmt);
        array.add(obj);
        BorrowerDetails = array.toJSONString();
    }

    @Override
    public String[] signList() {
        return new String[]{"Version", "CmdId", "MerCustId", "UsrCustId", "OrdId", "OrdDate", "BorrowerDetails", "PageType",
                "RetUrl", "BgRetUrl"};
    }

}
